package com.teradata.obmouse.mouse;

import com.teradata.observer.core.Event;

/**
 *
 * 观察者
 * Created by lyndon on 2018/5/29.
 *
 * 回调响应的逻辑，由自己实现
 *
 */
public class MouseEventCallback {

    public void onClick(Event event) {
        System.out.println("这是鼠标单击以后要执行的逻辑");
        System.out.println("========== 触发鼠标单击事件 ==========\n" + event);
    }

    public void onDoubleClick(Event event) {
        System.out.println("========== 触发鼠标双击事件 ==========\n" + event);
    }

    public void onUp(Event event) {
        System.out.println("========== 触发鼠标弹起事件 ==========\n" + event);
    }

    public void onDown(Event event) {
        System.out.println("========== 触发鼠标按下事件 ==========\n" + event);
    }

    public void onWheel(Event event) {
        System.out.println("========== 触发鼠标滚动事件 ==========\n" + event);
    }

    public void onMove(Event event) {
        System.out.println("========== 触发鼠标移动事件 ==========\n" + event);
    }

    public void onOver(Event event) {
        System.out.println("========== 触发鼠标悬停事件 ==========\n" + event);
    }


}
